package test;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Arrays;

public class ReadJson {

	public static void main(String[] args) throws Exception {
		File jsona=new File("/Users/dxy/Desktop/defense.json");
		InputStream in=new FileInputStream(jsona);
		byte[] bs=new byte[1024*128];
		int i = in.read(bs);
		in.close();
		System.out.println(i);
		byte[] data=new byte[i];
		System.arraycopy(bs, 0, data, 0, i);
		System.out.println(Arrays.toString(data));
		
	}

}
